package 笔试.HF;

/**
 * @author:谢君臣
 * @Date:2021/7/24-19:02
 * @version:1.0
 * @function:
 */
public class HF_DD {

    public int solution(int[] data){
        for (int i = 0; i < data.length; i++) {
            if (data[i]!=i) return i;
        }
        return 0;
    }

}
